projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4759afc
)
textview: Set line height from markup
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Aug 2021 17:39:34 +0000
(13:39 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Aug 2021 19:15:50 +0000
(15:15 -0400)
Note that we ignore the absolute-line-height
attribute for now.
gtk/gtktextbuffer.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextbuffer.c
b/gtk/gtktextbuffer.c
index 2101776e9588713bd5020ecf9df9f80a58842ffc..a611e48a91d3e98071e4eeab9cc67af6eb7eb361 100644
(file)
--- a/
gtk/gtktextbuffer.c
+++ b/
gtk/gtktextbuffer.c
@@
-4691,6
+4691,9
@@
insert_tags_for_attributes (GtkTextBuffer *buffer,
#if PANGO_VERSION_CHECK(1, 49, 0)
case PANGO_ATTR_LINE_HEIGHT:
+ FLOAT_ATTR (line_height);
+ break;
+
case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
break;
#endif